<template>
  <div>
    <form ref="form">
      <span>用户名： </span>
      <input type="text" name="username" v-model="form.username" /> <br />
      <span>密码： </span>
      <input type="password" name="password" v-model="form.password" />
    </form>
  </div>
</template>

<script>
export default {
  name: 'FormList',
  components: {},
  props: {},
  data() {
    return {
      form: {
        username: '',
        password: ''
      }
    }
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    sonSubmit() {
      console.log(this.form.username, this.form.password)
      this.form.username = ''
      this.form.password = ''
    }
  }
}
</script>

<style scoped></style>
